package cn.edu.sgu.www.mhxysy.service.children.impl;

import cn.edu.sgu.www.mhxysy.entity.children.ChildrenCategory;
import cn.edu.sgu.www.mhxysy.mapper.children.ChildrenCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.children.ChildrenCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChildrenCategoryServiceImpl implements ChildrenCategoryService {

    private final ChildrenCategoryMapper childrenCategoryMapper;

    @Autowired
    public ChildrenCategoryServiceImpl(ChildrenCategoryMapper childrenCategoryMapper) {
        this.childrenCategoryMapper = childrenCategoryMapper;
    }

    @Override
    public List<ChildrenCategory> selectAll() {
        return childrenCategoryMapper.selectList(null);
    }

    @Override
    public ChildrenCategory selectById(Integer id) {
        return childrenCategoryMapper.selectById(id);
    }

}